package com.knowledge.plus.自定义注解.example3;

import com.knowledge.plus.自定义注解.example3.annotation.MyLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author PF.Tian
 * @since 2021/09/13
 */
@RestController
public class MyLogController {

    @MyLog
    @GetMapping("/sourceC/{source_name}")
    public String sourceC(@PathVariable("source_name") String sourceName) {
        return "你正在访问sourceC资源";
    }

}
